from flask import Flask
from app.config import Config
from app.routes.auth import auth_bp


def create_app():
    app = Flask(__name__)
    app.config.from_object(Config)

    # 注册蓝图
    app.register_blueprint(auth_bp)

    return app